package com.example.teamwork.converter;

import com.example.teamwork.informationGet.PartVO;
import com.example.teamwork.pojo.Part;
import org.springframework.beans.BeanUtils;

/**
 * @author  SongPeng
 * @date  2021/10/19 14:23
 * @version 1.0
 */

public class PartmentConverter {


    /**
     * 转vo
     * @return
     */
    public static PartVO converterToDepartmentVO(Part department){
        PartVO departmentVO = new PartVO();
        BeanUtils.copyProperties(department,departmentVO);
        return departmentVO;
    }
}
